package com.xuecheng.api.order;

import com.xuecheng.api.order.model.dto.OrdersDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

@Api(value = "订单服务API, 订单生成、查看、取消、删除", tags = "11..订单管理")
public interface OrderApi {


    @ApiOperation("根据课程发布ID生成和修改课程支付订单")
    @ApiImplicitParam(name = "coursePubId", value = "课程发布ID", required = true, dataType = "Long", paramType = "path", example = "1")
    OrdersDTO createOrModifyOrders(Long coursePubId);

    @ApiOperation(value = "微信支付：根据课程订单号 去微信支付系统统一下单，返回codeURL(二维码链接)")
    @ApiImplicitParam(name = "orderNo", value = "课程订单号", required = true, dataType = "String", paramType = "query")
    Map<String, Object> createPay(String orderNo);
}
